if (localStorage.getItem("isLogin") !== "ok") {
    alert("未登录状态，不允许打开购物车，请先登录");
    location.href = "./logon.html"
}